﻿<Ui xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns="http://www.blizzard.com/wow/ui/">
	<Script file="TweetCraftHelpFrame.lua" />
	<Frame name="TweetCraftHelpFrame" parent="UIParent" toplevel="true" hidden="true">
		<Size>
			<AbsDimension x="600" y="450" />
		</Size>
		<Anchors>
			<Anchor point="CENTER" />
		</Anchors>
    <Backdrop bgFile="Interface\DialogFrame\UI-DialogBox-Background" edgeFile="Interface\DialogFrame\UI-DialogBox-Border" tile="true">
      <BackgroundInsets>
        <AbsInset left="11" right="11" top="12" bottom="10"/>
      </BackgroundInsets>
      <TileSize val="32"/>
      <EdgeSize val="32"/>
    </Backdrop>
    <Layers>
      <Layer level="ARTWORK">
        <Texture name="$parentHeader" file="Interface\DialogFrame\UI-DialogBox-Header">
          <Size x="350" y="68"/>
          <Anchors>
            <Anchor point="TOP">
              <Offset x="0" y="12"/>
            </Anchor>
          </Anchors>
        </Texture>
        <FontString name="$parentHeaderText" inherits="GameFontNormal" text="TweetCraft Help">
          <Anchors>
            <Anchor point="TOP" relativeTo="$parentHeader">
              <Offset x="0" y="-14"/>
            </Anchor>
          </Anchors>
        </FontString>
      </Layer>
    </Layers>
    <Frames>
      <ScrollFrame name="$parentScrollFrame" inherits="UIPanelScrollFrameTemplate">
        <Anchors>
          <Anchor point="TOPLEFT">
            <Offset x="20" y="-30"/>
          </Anchor>
          <Anchor point="BOTTOMRIGHT">
            <Offset x="-35" y="50"/>
          </Anchor>
        </Anchors>
        <ScrollChild>
          <Frame name="$parentScrollChildFrame">
            <Size>
              <AbsDimension x="100" y="390"/>
            </Size>
            <Anchors>
              <Anchor point="TOPLEFT" />
            </Anchors>
            <Frames>
              <SimpleHTML name="HelpSimpleHTML" file="Interface\AddOns\TweetCraft\TweetCraftHelp.html">
                <Size>
                  <AbsDimension x="540" y="390" />
                </Size>
                <Anchors>
                  <Anchor point="TOPLEFT" />
                </Anchors>
                <FontString inherits="GameFontNormal" spacing="1" />
                <FontStringHeader1 inherits="QuestFont_Shadow_Huge" spacing="5">
                  <FontHeight>
                    <AbsValue val="16"/>
                  </FontHeight>
                </FontStringHeader1>
                <FontStringHeader2 inherits="ChatFontNormal" />
                <FontStringHeader3 inherits="GameFontNormalLarge" />
              </SimpleHTML>
            </Frames>
          </Frame>
        </ScrollChild>
      </ScrollFrame>
      <CheckButton name="$parentDontShowOnStartupButton" inherits="OptionsCheckButtonTemplate">
        <Anchors>
          <Anchor point="BOTTOMLEFT">
            <Offset x="16" y="16"/>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnLoad>
            self.type = CONTROLTYPE_CHECKBOX;
            self.text = _G[self:GetName().."Text"];
            self.text:SetText("Don't show again on startup");
            self.tooltipText = "Check this box if you don't want to see TweetCraft Help on startup.";

            self.setFunc = function(value)
            dontShowTweetCraftHelpAgain = value == "1"
            end
          </OnLoad>
          <OnShow>
            self:SetChecked(dontShowTweetCraftHelpAgain);
          </OnShow>
        </Scripts>

      </CheckButton>
      <Button name="$parentClose" inherits="UIPanelButtonTemplate" text="CLOSE">
        <Size x="96" y="22"/>
        <Anchors>
          <Anchor point="BOTTOMRIGHT">
            <Offset x="-16" y="16"/>
          </Anchor>
        </Anchors>
        <Scripts>
          <OnClick>
            self:GetParent():Hide()
          </OnClick>
        </Scripts>
      </Button>
		</Frames>
	</Frame>
</Ui>